 
function update(){
    
    	var jsondata={
  			  "description":$("#description").val(),
  			  "name":$("#name").val()	  
  	  };
        $.ajax({     
            //要用post方式      
            type: "POST",     
            //方法所在页面和方法名      
            url: "/platform/windows/role/edit",     
           
            data:jsondata,
            async: false,
            dataType: "json",            
            success: function(data){
            	if(data.mess=="ok"){
            		 window.location.href = getWebRootPath() + "/windows/role.html";
            	}else{
            		 window.location.href = getWebRootPath() + "/windows/index.html";
            	}
            } 
        });     
    
        //禁用按钮的提交      
        //return false;     
       
}